package com.lecyon.farm.config;

import com.google.gson.Gson;
import com.lecyon.farm.handler.FeignErrorDecoder;
import org.springframework.context.annotation.Bean;

/**
 * @author Yao Zheng
 * @Date 2020/4/14 11:08
 */
public class FeignErrorConfig {

    @Bean
    public FeignErrorDecoder feignErrorDecoder(Gson gson) {
        return new FeignErrorDecoder(gson);
    }

}
